<div class="title_section">
	 Ajout d'un article
</div>
<div align="center" class="section">

<?php include_partial('form', array('form' => $form)) ?>
<script type="text/javascript">
tinyMCE.init({
    mode : "exact",
	elements : 'articles_texte',
	realtive_urls:false,
    theme : "advanced",
       plugins : "jbimages,autolink,lists,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,searchreplace,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras",

        // Theme options
		theme_advanced_buttons1 : "styleselect",
        theme_advanced_buttons2 : "jbimages,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,fontselect,fontsizeselect,|,hr,removeformat,|,sub,sup,|,charmap,emotions,iespell,advhr,|,ltr,rtl",
        theme_advanced_buttons3 : "search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,forecolor,backcolor,|,visualchars,|,insertimage,|,cite,abbr,acronym,|,fullscreen",
        theme_advanced_buttons4 : "tablecontrols",

        // Theme options
		content_css : '../css/styleselect.css',       
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : true,
});
</script>
<?php echo "
<script>
$('#editform').sisyphus({
    customKeyPrefix: 'ei_draft_', // Prefixe pour les clés du localStorage
    timeout: 5, // Interval de temps pour la sauvegarde
    onSave: function() {draft_update(".$sf_user->getGuardUser()->getId().")}, // Callback save
    onRestore: function() {draft_load(".$sf_user->getGuardUser()->getId().")}, // Callback restaurer
    onRelease: function() {draft_update(".$sf_user->getGuardUser()->getId().")}, // Callback release
    excludeFields: null // Si vous avez des champs à exclure $('textarea') par exemple
 });
</script>" ?>
</div>